http:
  middlewares:
    trim-index:
      redirectRegex:
        regex: "^([^\\?]*)/index\\.(html|php)"
        replacement: "${1}/"
        permanent: true
